Made LocalFile move/delete/restore handle network partitions better
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 13 Aug 2014 23:04:34 +0000 (16:04 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 14 Aug 2014 17:26:57 +0000 (17:26 +0000)
commit8dca7488eceb295708555e732b0d719c143efb41
tree1bf98b39dceb8e6d3103ff36622cb861e0f53684
parent604c316e359b409144fb98608de94cf82a35f892
Made LocalFile move/delete/restore handle network partitions better

* Previously, the file existence checks would not distinguish an answer
  in the negative from a non-answer. This was a long-standing problem.
  This avoids moving DB entries without moving the files (unless the
  partition happens in the middle of the moves of course).
* Optimized fileExistsBatch() to do concurrent stats if possible.

bug: 40927
bug: 69312
Change-Id: I9132fd5591bb7a3d5852f17514dcf51a3d8b7812
includes/filerepo/FileRepo.php
includes/filerepo/file/LocalFile.php